<template>
    <div class="fullscreen-auth-container">
        <!-- 动态欢迎语 -->
        <div class="welcome-banner">
            <h1 class="animated-title">欢迎来到<span class="highlight">BALLBALL</span></h1>
            <div class="animated-wave"></div>
        </div>

        <!-- 模式切换 -->
        <div class="mode-switch">
            <router-link to="/user/account/login/" class="mode-button" :class="{ active: $route.path === '/user/account/login/' }">
                <svg class="button-icon" viewBox="0 0 24 24">
                    <path
                        d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z" />
                </svg>
                立即登录
            </router-link>

            <router-link to="/user/account/register/" class="mode-button"
                :class="{ active: $route.path === '/user/account/register/' }">
                <svg class="button-icon" viewBox="0 0 24 24">
                    <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
                </svg>
                快速注册
            </router-link>
        </div>
    </div>
</template>



<style scoped>
.fullscreen-auth-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    /* 半透明背景 */
    z-index: 9999;
    /* 确保覆盖其他内容 */
    padding: 2rem;
    box-sizing: border-box;
}

.welcome-banner {
    text-align: center;
    width: 100%;
    max-width: 560px;
    margin-bottom: 2rem;
}

.auth-container {
    max-width: 560px;
    margin: 4rem auto;
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}


.animated-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 2rem 0;
    animation: float 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.highlight {
    color: #409eff;
    text-shadow: 0 4px 6px rgba(64, 158, 255, 0.2);
    position: relative;
}

.animated-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #409eff, transparent);
    transform: translateX(-50%);
    opacity: 0.6;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mode-switch {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 2rem;
}

.mode-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    color: #606266;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.mode-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(64, 158, 255, 0.2);
}

.mode-button.active {
    background: #409eff;
    color: white;
    box-shadow: 0 6px 12px rgba(64, 158, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    fill: currentColor;
}

.animated-wave {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23409eff' fill-opacity='0.1' d='M0,128L48,117.3C96,107,192,85,288,106.7C384,128,480,192,576,192C672,192,768,128,864,128C960,128,1056,192,1152,202.7C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E");
    animation: wave 12s linear infinite;
}

@keyframes wave {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .auth-container {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    .animated-title {
        font-size: 2rem;
    }

    .mode-switch {
        grid-template-columns: 1fr;
    }
}
</style>
